package com.derbysoft.synxisadapter.commons.log;

/**
 * Created by: jason
 * Date: 2012-06-12
 */
public class LogBody {

    public enum ProcessResult {
        Success,
        Fail,
    }

    public static final String TASK_ID = "echo.token";
    public static final String CHANNEL = "channel";
    public static final String PROVIDER_CHAIN = "supplier";
    public static final String REQUEST_TYPE = "process";
    public static final String DERBY_HOTEL_CODES = "hotel.derby";
    public static final String CHECK_IN = "check.in";
    public static final String CHECK_OUT = "check.out";
    public static final String RATE_PLAN = "rate.plan";
    public static final String ROOM_TYPE = "room.type";
    public static final String NUMBER_OF_UNIT = "number.of.unit";
    public static final String ADULT = "adult";
    public static final String CHILD = "child";

    public static final String NO_ALLOTMENT = "no.allotment";
    public static final String NO_AVAIL_HOTELS = "no.avail.hotels";
    public static final String HOTEL_AVAIL_ERRORS = "hotel.avail.errors";
    public static final String HOTEL_ROOM_RATES = "hotel.room.rates";

    public static final String ERROR_CODE = "error.code";
    public static final String ERSP_NUMBER = "ersp.number";
    public static final String PROCESSED_RESULT = "process.result";
    public static final String PROCESS_DURATION = "process.duration";
    public static final String SYSTEM_LOAD_STATUS = "system.load.status";
    public static final String MEMORY_STATUS = "memory.status";

    private String key;
    private String value;

    public LogBody(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static LogBody of(String key, String value) {
        return new LogBody(key, value);
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
